package com.yuyang.wifi.activitys.mine;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

import com.yuyang.wifi.R;

public class NewLaunchBrowserActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_launch_browser);

        //        Intent intent= new Intent();
//        intent.setAction("android.intent.action.VIEW");
////        Uri content_url = Uri.parse("http://www.cnblogs.com");
////        intent.setData(content_url);
//        startActivity(intent);


        Uri uri = Uri.parse("https://www.baidu.com");
        Intent intent = new Intent(Intent.ACTION_VIEW,uri);
         //intent.setClassName("com.UCMobile","com.uc.browser.InnerUCMobile");//打开UC浏览器
        intent.setClassName("com.tencent.mtt","com.tencent.mtt.MainActivity");//打开QQ浏览器
        //intent.setClassName("com.android.browser","com.android.browser.BrowserActivity");
        startActivity(intent);


//        Intent intent= new Intent();
//        intent.setAction("android.intent.action.VIEW");
//        Uri content_url = Uri.parse("https://www.baidu.com");
//        intent.setData(content_url);
//        intent.setClassName("com.android.browser","com.android.browser.BrowserActivity");
//        startActivity(intent);
    }
}
